Use flexbox for import/export dialogs (and add download button)