modified the show function in the api for edit category