so that dom pages are not destroyed