Put user state in scan/document editors, upgrade _