prep win state and add UI eles