reinitialize the forms after replaceHtml in form auto submit