Adding the search function and list view