added email funcationality