Refactored: statistics controller and views