added client side templates