change api for viewmodels