added in the option to view piecharts.