modify index and create.php following the guideline