re applying html with inputs loses values and bindings