prevent menu button highlight, close menu when clicking outside it