refactor and test console display