Update index.php

Make index.php dynamic