refreshing a tab caused it to be added to activeTabs multiple times