finialising view template