Add cancel logic and send email feature