navigating with templates