use of method refresh() after filter is added or removed