hide nav menu when user clicks outside of it