CHANGED: flight upload now happens in a background thread, keeping the gui responsive