refactoring statistics_controller.rb, new chart of items count added, table added