fixing sidebar main content bugs