add in filter functionality for categories