Added GUI elements for editing document metadata and removing documents.