add views to jsapi/model.py