Adjust the layout of the dialog boxes