Delete function and refreshList added