make email button work