Update index.php

hidden_mode and minor bugfixes