simplify DynamicTemplate not to use ajax calls