Change moving average filter to checkbox