How does undo/redo basically work on iPhone OS?