added checkbox for dialog box