allow javascript to show/hide progress dialog