Added legend to the right of toggle bar