pagination links on messages are as per search results