grab url next page condition