hide seemed to have no effect, and remove made it so that enterDocument was never called. here is a hack...