converted sandbox UI to d3