edit and update documents