fix closure of div for deleted page