added gui logic for the export