inserted php switch into index.php