created the category controller for the model