Close Item Properties window on Undo/Redo