added d3 controller