added DynamicLegendComponent