minor changes to emailCtrl