refactored css until legend and moved the drawLegend() function in overall.js