update flag field widget