Update redirect Code