adjust dialog window