fixed bug with emails, statuses after payment and added handling of Cancel