Update index.php

Added global variable $model_id reference in the  statsTable() function.