finishes the contact templating