added email controller