addViewComponent now accepts view vars.