edit an doc