Added edit and modified show for documents.