added search functionality to client