hook up search api to ui