refactored config for menu