Clears index#main before data is returned from a form submission