updated the size of the legend box