update labels after data change