modify addFromForm