modified functions on the edit category api