Update the sidebar active state