refactoring admin menu