Added a pages controller to the app