fix duplicate raw metadata, always show raw metadata, fix sidebarTmpl

closes #387 and #390