hooked up search to api