open document, scroll and orientation fixes