Refactors code for active tabs on gamebase