add question methods to define_enum_by_codes in TypeModel
structure index edit buttons