Refactored StatisticsActivity