implementation activeTab, addTab, removeTab