fixed next page problem by waiting for url change