update index.php to display stats