adding search function for display with search bar