minor refactoring.
update to include latest changes.
added tab order and input focus for adding or updating lookup entries.
Merge pull request #478 from nla/refactor-ref-data

Refactor ref data