added template for an app using directives