Refactor tab menus