refactoring display code to allow for menu switching (DOH)