Added dialogs instead of alerts