add onCancel argument to qcode.confirm