changes to the application_controller.rb