Fixed undo redo support, now the todo shows a simple versions list that can be clicked to go to a different state. Sometimes it goes a bit wrong though, need to investigate why restore sometimes goes wrong.