document interaction