made changes in gui.hs for file handling