adding createTemplate method for contentTab Class