update template for dreact
try to do client bind
now client side bind done but buggy