fix webcomponent to work with forms