implemented the redirect of the display page