statistics_controller index refactoring