Minor change in main.js to display legend in the visuals other than state pages