Add undo/redo front-end implementation.