Remember to clear the domNodes array when removing dom nodes
Fix refreshing of the view widget
Add support for widget events