Cleaned up duplicate code in application.html.erb