added progress bar, responding to ajax progress event.