adding search bar functionality