ProgressDialog will now wait for the server to finish, when user hits cancel button