Don't use getPrimaryFlight
Set a primary flight
Add a listener to visible_changed event
Divide addFlight into loadFlight and addFlight
Hide checkboxes and radio buttons when there is just one flight