fix email button to send properly using patch method