End of DialogBox implementation