view template improved