added div to legend elements