init progress bar and adjust it when tasks are checked/unchecked