improve training course deleting event, send mail fun