update example with cancel delegate