added delete all and refresh functions

added to index.php page