update label and badge