made legend centering responsive