Created a generic tab template for both a main-tab & sub-tab