updated filtering functionality to avoid using Search button, which is also capable of clearing the search results if filter text field is empty