click event on nav so it will close when sent to new route