fileGUI: fix problems related to viewing big files in the text viewer.