added doc for loadTemplate