adding tag to document in document list