refactored tabs. added controllers