Add possibility to set widget as content

Now works with dom event handlers