fix bug with form resending on refresh