refactor out tweet list printing code into method