Use the xhr object
finish search function