Ended coding for thoughts pagination