modification to page-structure-mode not yet fully working