hide menu when it can't be used