provide correct context to clean up DOM