lil' refactoring index.php