finished various search term functionalit