Adding undo and redo to the config