Updating UI data on when the UI is redefined or changed