Added onPageChange event handler

Change the active page for the plugin generated pages