How to update the details on the email template when a changes are made on the form?