Bunch of window events + extension fix