restored <div> elments and page numbers for appendices