setViewerInput now is much faster and doesn't cause text to flicker