optimized the menu