fixed some isseus with the sidebar