move index.php content to home.php
update function