index.php made modular