Added dynamic sizing of CUI dialog boxes