Implement side render check for top of collapsible block.
Formatting, cleanup, minor bugfixes.