adjust email controller in API. Changed modal data references to fit new format