Implemented DialogBox.