fix add record default value for custom elements.
change control handeling to onInitializeForm.