minor code cleanup for page.html