corrected the logic for donotshow again confirm dialog box