Edit index.php

Fixing bugs