update sidebar