initial router and templates structure