fixing the uploading on the GUI