working with templates and routes