Update index2.php

Moved code from index.php to index2.php