006: added callback to showpage and subpage.