Replaced call to super didMoveToWindow with a method swizzle