changed application.rb code