Decrease the amount of message exchange between UI and embedding
Merge pull request #18 from rojkov/master

Decrease the amount of message exchange between UI and embedding