refactored tabs