update sidebar ref