need to put the event handler for buttons within the d3.csv() callback function