added search functionality for rest add