add working toggle for d3