switch dom for index.php