Makes the filters only update when changing values

The filters were updating whenever they were closed, this commit makes
it so they update only when a new value is chosen.