Moving average filter responds to a checkbox