fix left and right keys and right rail rendering in relation to doc-viewer
fix some display quirks with document viewer and the right rail