moved dynamic search to personsController