added event to saveandnext to combat form submission in firefox.
working on the data structure, AGAIN.
better data structure partly implemented.