combine similar iteration blocks in resource group page