refactor tabs for group