Working with plot-click functionality