clearing the div classes and html before form submission