modified refreshDocs func add headlines proc