add app and template