implemented the ui for deleting a category