create dom, resize widget