adding search panel functionality