Closes nav bar correctly when navigating