add a new page, code clean up