updating the template file