added pageClickCallback to the Viewer API