update index.php

update index.php / add functions.php