Crappy tab manager implementation