Here is an example that might be slightly different, but maybe also accomplishes what you are trying to do.
Replace your column ‘show’ with the checkbox.
If you are just are try to apply specific filters, I would store them in multiple variable. You can the add the filter onLoad if the variable was changed.