setup view template