Added refresh function to page to correct the display