show loading animation when waiting for server response