further split up scripts to correct weirdness on forms