*Made subdialog's method setting more robust.