add application helper and use foundation
Use foundation and split template files