Layout fixes

Fixed a few layout issues related to the sidebar.