reorganized index.php