now we have only one dialog box at a time.