add template and modify index.php file