Fixed bug in export window

If the user toggled the export window it wouldn't have updated the
textarea with new data