adding charts legend and some css