Add a new DialogBox constructor