don't crash when there is no corpus selection
connect the export panel fields with the state
handle the export parameters