modify application.js, application_controller.rb, _messages.html.erb