change the size of the curve selection and chart dialogs based on number of curve layers in utfgrid