added undo/redo functionality for debug page