fix form insert/update