populate template content