fix the misplacement of the panels of the dialog