not finished with converting to react for search terms