added templateGallery