added email dialog