stats and webpage helper cracked off to grant better reusability