add template support to AddPage.vm