Make select to allow dialogs cancelable