fix edit for different forms