Refactoring, create product, edit product, edit doesn't work