moved cohort lookup logic from cohort to lookup route