adapt demo template