change to acquire the template folder path from application.