refactoring : menu