Added code to Email button