updated controller and added create categories for front end