Added ui conveniences to modals

Modals will now close and execute when enter is presses inside their
text fields.  Also, the text of the text field is automatically selected
on focus.