Working state diagram and progressbar