passing application reference to template files