modify collapse in history