cleaning up add widget. Move dom stuff into the view
cleaning up add widget. Move dom stuff into the view 2
cleaning up