update the sidebar