fixed functionality on in application.html.erb