Filter based on terms and fix the search bar