revised report table controller and improve pie chart