change commonApplication to TemplateApplication