Update products edit function for products resource