changed index.php

fixed broken links in popular and reversed last change to the close