update toast api