finish ModelMetadata and AutoForm