Added search functionality and confirmation popup for deleting.