add template to root scope