fixes to application.rb