change search method in visits