added the functionality of adding and loading files to the GUI