update view to allow a model instance to be passed in
update for build tools