add head section to templates