assigning load indicator to search function