Order viewed threads and some UI fixes.