update ng-controlers and d3 mechanism