Adding refresh functionality to form after submit