Added  a redirect helper method