created view and template and url for a stats page