updating the html output for pages