#5 added possiblity to cancel changes.