Control cloud widgets

Newbie with Arduino here. I am working on a project that interface Arduino Cloud, ESP32 and Nextion display (touch screen). Just testing an LED, ON/OFF switch on Cloud and switch on the display. I can control the LED from Cloud and from display. My question is, say I turn ON the LED from the display, the how do i update the cloud Arduino widget to show the correct status of the LED? and visa versa. Make the switches work in conjuction.