refactored menu bar