move view-layout content to template