NOISSUE, rearrange some code in index.php