wrapped all templates in main template, implemented serving assets