Tab count consistency

Now maintains consistent tab counts when clicking between tabs