generating Pages controller