I'm using the layerlist with a legend sample. We have a large datasets in our webmap, and it seems to be clumsy for the legend to appear at the top of a grouped layer set for those layer items turned on with all the listed layers down below in order to turn off the layer. This creates a lot of scrolling back and forth. Is there a way to incorporate the legend under the layer name with the on/off button on the same line? In other words, the legend would appear when the layer is turned on without creating a separate listing of legend items at the top of the open window.