make tabs pagination completely dynamic