fn make_controls(
    ctx: &mut EventCtx<'_>,
    opts: &ProblemTypes,
    legend: Widget
) -> Panel