figured out how to track undo/redo actions - adjusting editable lines appropriately still TODO