update template with HTML