added names and documents to gui