Pass categories to view