add method Cancelable dialog