Change the way of finding next page