ViewModel's setData method now receives view element.