fixes the display after the form submit