changed app_controller.rb