added piechart to template