update fav state by API