finalized the update template enhancement