hide the menu bar unless it is needed