redesign legend so it's viewable on mobile, fixes #56