apply the filter specified in popup