pass lastPath to page update handler