Fix edit bug in products detail page, add transaction object create/update behavior to Product model