Created custom Tabbed pain class to allow for extensibility