visibility logic on the menu