refactor to generate thread list views more efficiently.