implemented the ui for editing a category