Sidebar and code block fixes