fix export on firefox

firefox needs the form to be part of the DOM to submit it.