Fix docs to use event model for page changes

Updated the code and doc to use event instead of callback onPageChange

First commit, be gentle :-)