create template service