added pagination with no stlyingt o messages