added crud functionality for categories and created view