modifying api of edit category page