Fleshing out TemplateWindow code and layout