Decrease the amount of message exchange between UI and embedding