working on the api for edit product page