ecn search and save and edit works, finishing up mailer functionality