modify table in document