starting dynamic template inside groups logic.