wait for new url will take a block