applied template and included check of template loading