get all funcitonality of header location redirection for this done