moved navbar and its js to partial and rendered it in application.html.erb