Add toggle functionality for scatterPlot