create/update, factored out formBase class