collapse navbar on click on subitem