Replace usage of innerHtml with wrapInner to save existing widgets data