fixed issue with reload on submit