Adding logic to render labelProgress.