Undo/redo where editing reactions adds metab....

partly working.