update contact form functionality