deleting a mark dynamically updates the page and removes mark on click of confirmation to delete