added basic functionality for the email button