added a loading indicator on search