closes navbar on click