Refactoring tabs menus