Improved the HomeViewModel.filter method