Implemented pagination for the homescreen