email controller update