Resize and position the dialog after clicking Adbanced/Basic mode