corrected error in document#edit view