fixed styling for legend modal