added parameter icon in method getAllDocuments