Refactored menu bar and slider