Flows redesign using d3