move assignranks to form handler. Not quite right, but it works. I don't know how to make the dropdownlist plugin work like it needs to...