added ability to search based on lead type