implemented direct cancel in view