Fixed text page button handler to properly save the "current" page's content.