added form auto save functions, and patched it up so the two work with one another