Auto close exists dialog when open new dialog.