rearrange to sidebarContent is set before it is used