Made the filter checkbox work