Added a pages controller and updated the routes.