added loading icon when searching