Added pagination to thread list