Update index.php

Unified all similar cases, added default switch behavior