Add replace_attr method and use via 'group edit' method