update by  LJW for dynamic add widget