added piechart and startet typevalidation