added the link_to method in the applications.html.erb file