update template reference