Handle search behavior