fixes to form, var out of scope for on screen msg