update templete