set cancelable to true for dialogs