wait for redirect or go to new one