refactor email contact form