adding pie chart feature