switching between filter options retains state