updated index.php to include cancel