add search api call
change a class name to be more general