templates and routes for single page application