added stats page controller and tests