Set new state when filter changes