reverting the pie chart changes