resize warning dialog box