stats page needs refactor