Moved the common elements of tabs 1 and 2 into a base class.