merged display code with main app, functions to access private members, g arrays instead of acedb arrays