Fixes on trigger class and editing form.

Minor fixes on BaseRelationship, Constraint, Table, Textbox

Minor fixes on ModelWidget copy/paste operations