updating redirect flow