adding code visualization to d3
added code visualization on click events