After deleting an attribute or operation in a class, cancel button does not revert the delete.
A fix need to record changes in the undo stack and undo on cancel.