add filter automatic closing/opening