code cleanup
#78: setMode(edit) sets focus to first editable field/widget
#78: when opening PopupWindow set focus to first focusable field/widget
of contentPanel