add search method in library view.