Build lensdefinition gui and basic functionality; adapt tab order in a few dialogs