fn make_controls( ctx: &mut EventCtx<'_>, app: &App, opts: &Options, legend: Option<Widget>, num_problems: usize) -> Panel