Now we make the graphs on user click event