same changes to pages_controller.rb