undo/redo for marker drag & drop