added multiple emails option to controller.