added filter flights functionality