Improve undo/redo to retain node position. Bug fixed for delete link