to remove all listeners from window