text rendering revised for docs and divs controllers