refactor
show progress bar if no task finished in 500ms