update badge position