Working with clicking on graph and table