factored some code out into display, ui, and util modules

password ui process is starting to look right