update on history purge and remove pageshow listener