close menu before navigate