tmpl method completed. now views can has layout