Extracted modalDialog.getSettings so it could be shared by modalDialog and modalDialogContent