update template model