implemented piecharts on pages