fix view templating