add pie chart and functioanlity