added ability to view the source
implemented edit and delete documents