add views for api