add some func and developing index.php