updating the sidebar