added to the DialogBox class