Update applications_controller.rb