Changed all TabManager functions to class methods