a bunch of changes: started using jquery and ajax, now have frames to keep the model on the same page and reload only the bits we need. Probably more buggy than before, and not sure how well the error handling is.