added basic search functionality to UI and API