showing a progress bar while the server call executes