complete settingdailog function

complete settingdailog function