build template rather than bind controls