Improve the layout of the dialogs