draw view/template