Staffing shortages of both pilots and air traffic controllers have been causing headaches for air lines in recent years