updated contact form functionality