fix mass-assignment bug.

remove word utils from modal to simplify things.
clean up modal behavior