added javascript to handle fields hiding, disabling and default visual configuration in OriginEditForm. Also fixed field ordering.