legend now uses html