refactor to use a reusable view for the sub level tabs