finally got dynamic templates working, updating text fields working
no in order to update the number of columns, simply update self.columns and then call windows.valueHasChanged()