added click event to the pie chart