adding zindex to legend to put it on top