fix build problem , add email dialog