$model is now set as a viewVar in beforeRender