Added onCancel callback to confirm box in demo