Completed delete and search functionality