adding search fuctionality