Controller and view generation of models