added mouse conditional
restore cursor, view, and folding of a document