adding loading animation for search