changed widget api