Make sidebar and header scroll with viewer

Makes the sidebar and header scroll with the viewer.