DRY index.php