Updated routes.rb and pages_controller.rb