add the functionality for change the email visibility.