only hit flights controller if on flight page