Add logic and view for Categories