adding redirection to application.rb