moved nav links from application.html.erb to index.html.haml and changed the click event