split up filtering and searching behavior