Added option handlers for undo, redo, and adjust events