Hiding menu when not needed