Keeping the lid on while boiling is a bad idea. Even with extract there is a risk of DMS (cooked corn and vegetable flavors and aromas), boiling drives this off, but with a lid on it'll go back in your beer. In addition, if you keep the lid on you're much more likely to get boilovers.