modified api for edit product page