statistic front-end refactoring