adding d3 controller