fix edit and update actions in products controller