add template.php and site.php
init app1