added legend in the dashboard