add ng-switch
email send works
with rootscope to emit the message
upgrademessages works