added a loader to the search component