add confirmDelete fucntion