Added pages to controller.