sending the page position on onClosed and onOpened