refactored expandable tabs