Add view to template