made the piechart into a modal