changes in the sidebar and active states for buttons