Move legend to its own div