add state to filter and logic for clear filter