more code for form submit continuity