updating the filter while loading