Fixed exporting table upon form submission