Setting Variables At Runtime Doesn't Work

Yes I’d love if you could tell me some pointers on how to simplify it. Also any idea how can I get reference of the Widget if it’s within the Health Component?