Add method for edit category