commit cell contents when an action is completed and restore contents when dragging a rectangle.