logic and style for sidebar and breadcrumb