Added pollEvent to show progress bar dialogs