Made the first two tabs share a common base class in order to avoid code duplication.