add pause on window focus out