make ElementGroups auto attach/detach

whenever an action is assigned