Demo app: made loading dialog cancellable.