added debug function to display template file name
added front-page template