Implemented showing/hiding of progress dialog when request is in progress.