updated pagehide event for compass, events