added loading indicator
using local loading gif
only show loading animation if the request hasn't finished in 500ms