tree: apply group settings of prev group when adding