added reloadCharts function and categories show