set dialog can not cancel