edit api
rename state