adding search funtionality