changes for Dialog.