added setActiveTab to simplify tab control