update template injection