Generate Pages controller