handle direct jump to middle of document