some stuff with the legend in dashboards