adding search by name functionality