fixed some styling issues with legend