refine index.php