finished pagination for messages