Improve application.rb