does this have to know about sidebar status? it makes this a dependency.
if that's the case, it would make sense to have some sort of sidebar layout, which would include the sidebar and transclude content for the main pane