connected data to d3 and redraws on update