Make use of templating for flatview