Updated script to reset forms after subission.