refactoring flights_controller