Reset model after undo/redo operations