moved <li>'s around legend