Encapsulated ui functionality into objects for each tab.