clean the template for contact