prevent history modification by popup