MainFrame modification to open output files from scripts