history is now saved. Should be easy to implement undo/redo now