refactored Tabs.