Support loadTemplate and loadViewModel