refactoring menu tab