[ui] minor mods on the legend