refactor flight creation to standardize form