Changed the display page code to a single page