move file reading out of GUI class
move file reading out of GUI class