Fixes html legend pane
Allows to edit the html of the legends