Issue #1719: added pageshow and pagehide events

added pageshow and pagehide events