fixed the loading bug
show the loading icon while waiting for server response