Switched to using view model object for templates (instead of array)