Generate Pages Controller