Added previous page functionality to Redirect