update: added a check to see if the user cancels the export. Updated the gpc