add pagination on home page