changed where pagination is on main page