update the search ajax function and css style