Refactoring MenuManager class