Supporting functionality of the dialog box