refactoring of the tab tools