undo/redo replacement

- you can now undo and redo a replacement of a node
To Do:
- undo/redo line replacement